<template lang="html">
  <div class="header-container">
    <as-header fixed title="悬挂标题">
      <router-link to="/" slot="left" class="link">
        <span class="iconfont icon-zuosanjiao"></span>
      </router-link>
    </as-header>
    <br>
    <br>
    <br>
    <br>
    <as-header title="标准标题"></as-header>
    <br>
    <as-header title="带有返回按钮">
      <router-link to="/" slot="left" class="link">
        <span class="iconfont icon-zuosanjiao"></span>
      </router-link>
    </as-header>
    <br>
    <as-header title="两侧均有内容">
      <router-link to="/" slot="left" class="link">
        <span class="iconfont icon-zuosanjiao"></span>
      </router-link>
      <span slot="right" class="share">分享</span>
    </as-header>
    <br>
    <as-header>
      <router-link to="/" slot="left" class="link">
        <span class="iconfont icon-zuosanjiao"></span>
      </router-link>
      <p slot="title"><span class="title">复杂样式</span>标题</p>
      <span slot="right" class="share">分享</span>
    </as-header>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
  </div>
</template>

<script>
export default {
}
</script>

<style lang="scss">
.header-container{
  position: relative;

  .link {
    display: flex;
    align-items: center;
  }
  .title {
    color: yellow;
  }
}
</style>
